﻿#ifndef __QCLABEL_H__
#define __QCLABEL_H__

#include <QLabel>
#include <QMouseEvent>

class QCLabel : public QLabel
{
    Q_OBJECT

public:
    explicit QCLabel(QWidget *parent = 0);
    ~QCLabel();

protected:
	//void paintEvent(QPaintEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);

    void enterEvent(QEvent *);//进入事件
    void leaveEvent(QEvent *);//离开事件

signals:
    void clicked();
	void dbclicked();
    void mouseOn();
    void mouseLeave();

private:
	long long m_lastPressTimestamp;
};

#endif // __QCLABEL_H__
